<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Seller\Controller;
use Think\Controller;
class FavoritesController extends \Member\Controller\IndexController {

	public function indexAction(){

		$pagenum=intval($_GET['p']);
		$wheresql=" uid=$this->uid ";
		$list=M('Favorites')->token(false)->where($wheresql)->order('dateline DESC')->page($pagenum,10)->select();

		//页码-------------------------------
		$count=M('Favorites')->token(false)->where($wheresql)->count();
		$Page = new \Think\Page($count,10);
		$this->assign('list',$list);
		$this->assign('page',$Page->show());

		$this->display();	
    }

}